package com.sunk.mybatis.mymybatis;

import com.sunk.mybatis.mymybatis.Configuration.SimpleSqlsession;
import com.sunk.mybatis.mymybatis.entity.User;
import com.sunk.mybatis.mymybatis.mapper.UserMapper;

/**
 * @Author: Sunk 673116067@qq.com
 * @Date: 2018/10/10 14:37
 * @Description:
 */
public class Test {
    public static void main(String[] args) {
        SimpleSqlsession sqlsession=new SimpleSqlsession();
        UserMapper mapper = sqlsession.getMapper(UserMapper.class);
        User user = mapper.getUserById("1");
        System.out.println(user);
    }
}
